package com.itheima_5;

public class Teacher implements Person {
    private String shcool;
    private int ID;

    public Teacher() {
    }

    public Teacher(String shcool, int ID) {
        this.shcool = shcool;
        this.ID = ID;
    }


    public String getShcool() {
        return shcool;
    }

    public void setShcool(String shcool) {
        this.shcool = shcool;
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }
public void teach(){
    System.out.println("教书");
}
    @Override
    public String toString() {
        return "Teacher{" +
                "shcool='" + shcool + '\'' +
                ", ID=" + ID +
                '}';
    }

    @Override
    public void work() {
        System.out.println("老师在教书");
    }
}
